package com.kcloud.commons.entity.control;

import com.kcloud.commons.entity.core.StandardAttribute;
import lombok.Data;

import java.util.List;

/**
 * 业务域
 */
@Data
public class BizDomain implements StandardAttribute {
    private Class<?> cls;
    private String domainCode; //业务域编码
    private String domainName; //业务域名称
    private String apiPrefix; // 请求前缀
    private List<Function> functions; // 功能清单
    private List<AttributeGroup> attributeGroups; // 属性集清单

    @Override
    public void setTitle(String title) {
        this.domainName = title;
    }

    @Override
    public void setKey(String key) {
        this.domainCode = key;
    }

    @Override
    public String getTitle() {
        return getDomainName();
    }

    @Override
    public String getKey() {
        return getDomainCode();
    }
}
